//
//  AY_ReadManager.h
//  AiYue
//
//  Created by mac on 2023/10/18.
//

#import <Foundation/Foundation.h>
#import "AY_ReadBookModel.h"

NS_ASSUME_NONNULL_BEGIN

#define kConfigMaxBrightnessValue 0.5
#define kConfigMinFontSize 14.f
#define kConfigMaxFontSize 30.f

@interface AY_ReadManager : NSObject
@property (nonatomic,assign) CGFloat lineSpace; //行间距
@property (nonatomic,assign) CGFloat fontSize;  //字体大小
@property (nonatomic,strong) NSString *fontName;    //字体名称
@property (nonatomic,strong) UIColor *fontColor;    //字体颜色
@property (nonatomic,strong) UIImage *background;   //主题
@property (nonatomic,assign) CGFloat chapterFontSize;   //标题字体大小
@property (nonatomic,assign) CGFloat chapterLineSpace;  //标题行间距
@property (nonatomic,assign) CGFloat firstLineHeadIndent;  //首行缩紧
@property (nonatomic,assign) CGFloat brightness;        //屏幕亮度
@property (nonatomic,assign) SXPageType pageType;       //翻页效果
@property (nonatomic,strong) UIColor *samllCharpterColor;   //左上角小标题颜色
@property (nonatomic,strong) UIColor *toolColor;        //下面电量进度颜色
@property (nonatomic,strong) UIColor *huYanColor;        //护眼颜色
@property (nonatomic,assign) CGFloat huYanAlpha;        //护眼alpha值
@property (nonatomic, assign) BOOL isNight; // 是否是夜间模式 no 不是 YES是
@property (nonatomic, assign) BOOL isHuYan; // 是否是护眼模式 no 不是 YES是
//=======================================顶部颜色与图片=========================================
@property (nonatomic,strong) UIColor *topColor;        //顶部颜色
@property (nonatomic,copy) UIImage *topBackImg;        //顶部返回图片
@property (nonatomic,copy) UIImage *topNightImg;       //顶部夜间、日间图片
@property (nonatomic,copy) UIImage *topCommentImg;     //顶部评价图片
@property (nonatomic,assign) BOOL *isYeJian; // 是否开启了夜间


//=======================================底部颜色与图片=========================================
@property (nonatomic,copy) UIColor *backColor;      //背景颜色
@property (nonatomic,copy) UIColor *toolBackColor;      //工具栏背景颜色
@property (nonatomic,copy) UIColor *titleColor;      //文字颜色
@property (nonatomic,copy) UIColor *lineColor;      //线颜色
//=======================================目录颜色与图片=========================================
@property (nonatomic,copy) UIColor *middHeaderColor;      //底部字体颜色中间排序颜色
@property (nonatomic,copy) UIColor *muLLineColor;      //目录线条颜色
@property (nonatomic,copy) UIImage *muLuSortImg;      //目录排序图片
//设置主题
@property (nonatomic,assign) SXThemeType theme;
@property (nonatomic, strong) AY_ReadBookModel *bookModel;
+ (instancetype)sharedInstance;

+ (NSMutableArray *)getThemes;
@end

NS_ASSUME_NONNULL_END
